#ifndef __HAL_UART_DRIVER_H__
#define __HAL_UART_DRIVER_H__


#include "esp32/rom/ets_sys.h"


#if Console_DeBug_Log_Enable
	#define CONSOLE_DEBUG(tag,fmt,...)		do{ ESP_LOGI(tag,fmt, ##__VA_ARGS__); }while(0)
#else
	#define CONSOLE_DEBUG(tag,fmt,...)		do{ }while(0)
#endif


#define buffer_size 256

typedef enum
{

    uart_idle = 0,
    uart_receving = 1,
    uart_receive_complete = 2,

}uart_status_t;
//定义串口fifo大小
#define uart_fifo_size  120

//定义串口超时处理时间
#define uart_timerout_times    30 // 


void Console_Uart_Init(void);

void Console_Timer_Reset();





#endif